import request from '@/utils/request'
export function orderList(data) {
  console.log("api salesOrder line2",data)
  return request({
    url:'/salesOrder/list',
    method: 'post',
    data
  })
}

export function deleteByIds(data) {
  return request({
    url:'/salesOrder/batchDelete',
    method: 'post',
    data
  })
}

export function addSalesOrderList(data) {
  return request({
    url:'/salesOrder/add',
    method: 'post',
    data
  })
}

export function updateSalesOrderList(data) {
  return request({
    url:'/salesOrder/update',
    method: 'post',
    data
  })
}

export function getCustomerList(data) {
  return request({
    url:'/initValue/cus/list',
    method: 'post',
    data
  })
}

export function getProductList(data) {
  return request({
    url:'/product/list',
    method: 'post',
    data
  })
}

export function deleteById(params) {
  console.log("this is api ",params)
  return request({
    url:'/salesOrder/delete',
    method: 'get',
    params
  })
}